package cn.cjxy.mapper;

import cn.cjxy.domain.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 数据层
 */
@Mapper
public interface StudentMapper {
    //查询所有
    List<Student> findAll();
    //查询单个
    Student findById(Long id);
    //新增
    void save(Student student);
    //修改
    void update(Student student);
    //删除
    void delete(Long id);
}
